package org.galaxyworld.flycode.config;

import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("application")
@ToString
public class AppConfig {

    @Value("spring.datasource.platform")
    private static String platform;

    private static String outputDir;

    private static String schema;

    private static boolean java8;

    public static String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        AppConfig.platform = platform;
    }

    public static String getOutputDir() {
        return outputDir;
    }

    public void setOutputDir(String outputDir) {
        AppConfig.outputDir = outputDir;
    }

    public static String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        AppConfig.schema = schema;
    }

    public static boolean isJava8() {
        return java8;
    }

    public void setJava8(boolean java8) {
        AppConfig.java8 = java8;
    }
}
